/**
 * 
 */
package com.social.itba.model;

import org.apache.commons.lang.Validate;

/**
 * Represents a Movie Director.
 * 
 * @author waabox( emiliano[dot]arango[at]globat[dot]com )
 */
public class Director {
  private Integer id;
  private String name;
  /**
   * @return {@link Integer} the id.
   */
  public final Integer getId() {
    return id;
  }
  /**
   * @param directorId {@link Integer} the id to set. Can not be null.
   */
  public final void setId(final Integer directorId) {
    Validate.notNull(directorId, "director id can not be null or empty");
    id = directorId;
  }
  /**
   * @return {@link String} the name.
   */
  public final String getName() {
    return name;
  }
  /**
   * @param directorName {@link String} the name to set.
   *  Can not be null or empty.
   */
  public final void setName(final String directorName) {
    Validate.notEmpty(directorName, "directorName can not be null or empty");
    name = directorName;
  }
}
